package allen.log;

/**
 * Log level.
 * */
public enum LogLevel implements Comparable<LogLevel> {
	Trace(0), Debug(1), Info(5), Warn(7), Error(8), Fatal(10);

	private int prority;

	LogLevel(int prority) {
		this.prority = prority;
	}

	/**
	 * Whether this log level is below other log level.
	 * */
	public boolean isBelow(LogLevel otherLogLevel) {
		return this.prority < otherLogLevel.prority;
	}
}
